package com.zzw.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zzw.dao.OilDao;
import com.zzw.pojo.Oil;
import com.zzw.service.OilService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class OilServiceImpl implements OilService {
    @Autowired
    private OilDao oilDao;

    @Override
    public List<Oil> findAll() {
        return oilDao.findAll();
    }

    @Override
    public void addOil(Oil oil) {
        oilDao.addOil(oil);
    }
}
